﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Veracruz.IdentityModel;

namespace Veracruz.Facebook.Web.Security
{
    // TODO : Develop a FacebookUserInfo : UserInfo
    public static class UserInfoExtensionMethods
    {
        public static FacebookMembershipUser CreateMembershipUser(this UserInfo userInfo)
        {
            return new FacebookMembershipUser(Convert.ToInt64(userInfo.UserId), userInfo.Name, userInfo.Email);
        }
    }
}
